{{- $providerClusterConfiguration := .Values.cloudProviderVcd.internal.providerClusterConfiguration | required "internal.providerClusterConfiguration is required" -}}
---
apiVersion: v1
kind: Secret
metadata:
  name: cloud-data-discoverer
  namespace: d8-cloud-provider-vcd
  {{- include "helm_lib_module_labels" (list . (dict "app" "cloud-data-discoverer")) | nindent 2 }}
type: Opaque
data:
  host: {{ $providerClusterConfiguration.provider.server | toString | b64enc | quote }}
  org: {{ $providerClusterConfiguration.organization | toString | b64enc | quote }}
  vdc: {{ $providerClusterConfiguration.virtualDataCenter | toString | b64enc | quote }}
  vAppName: {{ $providerClusterConfiguration.virtualApplicationName | toString | b64enc | quote }}
  insecure: {{ "true" | b64enc | quote }}
